<html><head><title>Drag-and-Drop With the Data Source View</title><meta name="filename" content="text/common/guide/dragdrop_beamer"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
table.Tabelle1{
margin-left:0cm; margin-right:0.005cm;}
span.Tabelle1A{
width:1.499cm;}
span.Tabelle1B{
width:16.496cm;}
td.Tabelle1A1{
}
table.Tabelle2{
margin-left:0cm; margin-right:-0.018cm;}
span.Tabelle2A{
width:1.499cm;}
span.Tabelle2B{
width:16.514cm;}
tr.Tabelle21{
}
td.Tabelle2A1{
}
p.P1{
}
p.P2{
}
span.T1{
font-weight:bold;}
span.fr1{
}
span.fr2{
}
</style></head><body>
<p class="P1"/>
<p class="Head1"><help:paragraphinfo state="U" number="10" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="drag and drop; data source view" tag="kw68259_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="data source view; drag and drop" tag="kw68259_2" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="dragdrop_beamer" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68259">Drag-and-Drop With the Data Source View</help:link></help:to-be-embedded></p>
<p class="Paragraph"><help:paragraphinfo state="U" number="34" xmlns:help="http://openoffice.org/2000/help"/>A fast way of copying from a data source into a text or spreadsheet document, or of creating forms based on a data source, is by drag-and-drop.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="35" xmlns:help="http://openoffice.org/2000/help"/>Copying with Drag-and-Drop</p>
</span></th></tr></table>
<p class="Paragraph"><help:paragraphinfo state="U" number="28" xmlns:help="http://openoffice.org/2000/help"/>If you want to reverse a drag-and-drop, position the cursor in your document and choose <span class="T1">Edit - Undo</span>.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="46" xmlns:help="http://openoffice.org/2000/help"/>It is also possible to copy by drag-and-drop from a document into a data source:</p>
<ul class="L1">
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="47" xmlns:help="http://openoffice.org/2000/help"/>A text table or the selected range of a spreadsheet can be dragged using drag-and-drop to a table container in the data source explorer.</p>
</li>
<li class="">
<p class="P2"><help:paragraphinfo state="U" number="48" xmlns:help="http://openoffice.org/2000/help"/>Plain text can be copied using drag-and-drop from one document to a data field in the data source view.</p>
</li>
</ul>
</span></th></tr></table>
<p class="Head3"><help:paragraphinfo state="U" number="36" xmlns:help="http://openoffice.org/2000/help"/>Using data in a text document</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="12" xmlns:help="http://openoffice.org/2000/help"/>You can insert a database field in a text document by dragging a field name from the column header of the data source view into the document. This is especially useful when designing form letters. Simply drag the desired fields - home address, form of address, and so on - into your document.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="37" xmlns:help="http://openoffice.org/2000/help"/>To insert a complete record, select the corresponding header and drag it into the document. When you release the mouse button, the <help:link Id="65967" xmlns:help="http://openoffice.org/2000/help"><span class="T1">Insert database columns</span></help:link> dialog appears, in which you can decide whether to use all database fields, and whether to copy the data into the document as text, a table or fields. All currently selected records will be inserted.</p>
<p class="Head3"><help:paragraphinfo state="U" number="39" xmlns:help="http://openoffice.org/2000/help"/>Applying data to a table document</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="40" xmlns:help="http://openoffice.org/2000/help"/>You can insert one or more records into the current sheet of a spreadsheet by selecting the rows in the data source view and dragging and dropping them into the spreadsheet. <text:s text:c="" xmlns:text="http://openoffice.org/2000/text"/>The data is inserted at the place where you release the mouse button.</p>
<p class="Head3"><help:paragraphinfo state="U" number="42" xmlns:help="http://openoffice.org/2000/help"/>Inserting controls in a text form</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="43" xmlns:help="http://openoffice.org/2000/help"/>When you create a text form linked to a database, you can generate controls by drag-and-drop from the data source view.</p>
<p class="Paragraph"><help:paragraphinfo state="U" number="45" xmlns:help="http://openoffice.org/2000/help"/>When you drag a database column into the text document, you insert a field. If you hold down Shift+<help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">Command</help:case><help:default>Ctrl</help:default></help:switch> while dragging, a text field is inserted, grouped with an appropriate label field. The text field already contains all the database information that you need for the form.</p>